<?php
/**
 * ExtDateField class file
 *
 * @author TrueSoftware B.V. (The Netherlands)
 * @link http://www.ext4yii.com
 * @copyright Copyright 2007-2010 TrueSoftware B.V. all rights reserved.
 * @license http://www.ext4yii.com/license/
 *          EVALUATION VERSION - NOT FOR COMMERCIAL USE OR DISTRIBUTION.
 * @version 0.7.2
 */

class ExtDateField extends ExtTriggerField
{
    /**
     * Gets the value of ExtJS altFormats property
     * @return String 
     */
    public function getAltFormats()
    {
    	return $this->getConfig("altformats");
    }

    /**
     * Sets the value of ExtJS altFormats property
     * @param String $value 
     */
    public function setAltFormats($value)
    {
    	$this->setConfig("altformats",$value);
    }

    /**
     * Gets the value of ExtJS disabledDates property
     * @return Array 
     */
    public function getDisabledDates()
    {
    	return $this->getConfig("disableddates");
    }

    /**
     * Sets the value of ExtJS disabledDates property
     * @param Array $value 
     */
    public function setDisabledDates($value)
    {
    	$this->setConfig("disableddates",$value);
    }

    /**
     * Gets the value of ExtJS disabledDatesText property
     * @return String 
     */
    public function getDisabledDatesText()
    {
    	return $this->getConfig("disableddatestext");
    }

    /**
     * Sets the value of ExtJS disabledDatesText property
     * @param String $value 
     */
    public function setDisabledDatesText($value)
    {
    	$this->setConfig("disableddatestext",$value);
    }

    /**
     * Gets the value of ExtJS disabledDays property
     * @return Array 
     */
    public function getDisabledDays()
    {
    	return $this->getConfig("disableddays");
    }

    /**
     * Sets the value of ExtJS disabledDays property
     * @param Array $value 
     */
    public function setDisabledDays($value)
    {
    	$this->setConfig("disableddays",$value);
    }

    /**
     * Gets the value of ExtJS disabledDaysText property
     * @return String 
     */
    public function getDisabledDaysText()
    {
    	return $this->getConfig("disableddaystext");
    }

    /**
     * Sets the value of ExtJS disabledDaysText property
     * @param String $value 
     */
    public function setDisabledDaysText($value)
    {
    	$this->setConfig("disableddaystext",$value);
    }

    /**
     * Gets the value of ExtJS format property
     * @return String 
     */
    public function getFormat()
    {
    	return $this->getConfig("format");
    }

    /**
     * Sets the value of ExtJS format property
     * @param String $value 
     */
    public function setFormat($value)
    {
    	$this->setConfig("format",$value);
    }

    /**
     * Gets the value of ExtJS invalidText property
     * @return String 
     */
    public function getInvalidText()
    {
    	return $this->getConfig("invalidtext");
    }

    /**
     * Sets the value of ExtJS invalidText property
     * @param String $value 
     */
    public function setInvalidText($value)
    {
    	$this->setConfig("invalidtext",$value);
    }

    /**
     * Gets the value of ExtJS maxText property
     * @return String 
     */
    public function getMaxText()
    {
    	return $this->getConfig("maxtext");
    }

    /**
     * Sets the value of ExtJS maxText property
     * @param String $value 
     */
    public function setMaxText($value)
    {
    	$this->setConfig("maxtext",$value);
    }

    /**
     * Gets the value of ExtJS maxValue property
     * @return Date/String 
     */
    public function getMaxValue()
    {
    	return $this->getConfig("maxvalue");
    }

    /**
     * Sets the value of ExtJS maxValue property
     * @param Date/String $value 
     */
    public function setMaxValue($value)
    {
    	$this->setConfig("maxvalue",$value);
    }

    /**
     * Gets the value of ExtJS minText property
     * @return String 
     */
    public function getMinText()
    {
    	return $this->getConfig("mintext");
    }

    /**
     * Sets the value of ExtJS minText property
     * @param String $value 
     */
    public function setMinText($value)
    {
    	$this->setConfig("mintext",$value);
    }

    /**
     * Gets the value of ExtJS minValue property
     * @return Date/String 
     */
    public function getMinValue()
    {
    	return $this->getConfig("minvalue");
    }

    /**
     * Sets the value of ExtJS minValue property
     * @param Date/String $value 
     */
    public function setMinValue($value)
    {
    	$this->setConfig("minvalue",$value);
    }

    /**
     * Gets the value of ExtJS showToday property
     * @return Boolean 
     */
    public function getShowToday()
    {
    	return $this->getConfig("showtoday");
    }

    /**
     * Sets the value of ExtJS showToday property
     * @param Boolean $value 
     */
    public function setShowToday($value)
    {
    	$this->setConfig("showtoday",$value);
    }

    /**
     * Gets the value of ExtJS triggerClass property
     * @return String 
     */
    public function getTriggerClass()
    {
    	return $this->getConfig("triggerclass");
    }

    /**
     * Sets the value of ExtJS triggerClass property
     * @param String $value 
     */
    public function setTriggerClass($value)
    {
    	$this->setConfig("triggerclass",$value);
    }

    
    public function __construct()
    {
        parent::__construct();
        $this->configmap = array_merge($this->configmap,array(
            'altformats' => 'altFormats',
            'disableddates' => 'disabledDates',
            'disableddatestext' => 'disabledDatesText',
            'disableddays' => 'disabledDays',
            'disableddaystext' => 'disabledDaysText',
            'invalidtext' => 'invalidText',
            'maxtext' => 'maxText',
            'maxvalue' => 'maxValue',
            'mintext' => 'minText',
            'minvalue' => 'minValue',
            'showtoday' => 'showToday',
            'triggerclass' => 'triggerClass'
        ));

        $this->eventtable = array_merge($this->eventtable,array(
            'select' => array('sender','date')
        ));


        $this->setXType('datefield');
        $this->setXClass('Ext.form.DateField');
    }    
}
?>